<?php

class Connection {

    function __construct() {
        //return $this->configDB();
    }

    function configDB() {
        /* For Localhost */
        $host = 'localhost';
        $user = 'root';
        $pass = '';
        $db = 'lode';

        /* For Server */
        //$host = 'localhost';
        //$user = 'webadmin';
        //$pass = 'openme4user';
        //$db = 'lode';

        $connect = mysqli_connect($host, $user, $pass, $db);
        return $connect;

        //mysql_connect($host, $user, $pass) or die("Could not connect database !");
        //return mysql_select_db($db);
    }

}

?>